home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 65.zip
/
BS1 part 65
/
Elan performer v2.0.adf
/
Recorder
/
play.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1978-10-16
|
1KB
|
48 lines
/* Rev 7.26.90 */
/* PLAY.REXX <FileName> */
/* Plays Back keystrokes To Performer Recorded By RECORD.REXX*/
x = RemLib("rexxsupport.library")
x = RemLib("rexxarplib.library")
If addlib("rexxsupport.library",0,-30,0) then Do
ARG FileName
If FileName = '' then do
Say ""
Say 'Enter directory and name of script to play back:'
PULL FileName
end
If Open('RecFile',FileName,'R') then Do
x = Readln('RecFile')
x = Readln('RecFile')
PicEnv = Readln('RecFile')
address command
"run /Player" PicEnv
Say ""
Say "Loading Elan Player 2.0 with" PicEnv "..."
do for 60 while ~show('Ports','PERFORMER')
call delay 25 /* 0.5 sec */
end
call delay 100
Address PERFORMER
Call Time('R')
Do While (~ EOF('RecFile'))
FileRec = Readln('RecFile')
KeyNum = SUBWORD(FileRec,1,1)
KeyTime = SUBWORD(FileRec,2,1)
DO WHILE (TIME('E') < KeyTime)
x = (KeyTime-Time('E'))*50-2
If x>1 & 0 ~= (x // 10) then Call DELAY(x)
END
If KeyNum ~= "" then KEY KeyNum
end
/* QUIT Remove Comment to Exit Performer at End of Playback */
end
else say "Can't Open file:" FileName
end
else say "The Arexx RexxSupport.Library must be installed in libs directory."
x = RemLib("rexxsupport.library")
say ""
say "Type endcli to quit."
say ""
exit(0)